package com.myshoutui.manager;

import android.os.AsyncTask;

public class MyShoutConsumerAsynTaskManager  extends AsyncTask{
	
	private MyShoutConsumerAsynTaskInterface mMyShoutConsumerAsynTaskInterface=null;
	public MyShoutConsumerAsynTaskManager(MyShoutConsumerAsynTaskInterface asynInterface) {
             this.mMyShoutConsumerAsynTaskInterface = asynInterface;
	}

	@SuppressWarnings("unchecked")
	@Override
	protected void onPostExecute(Object result) {
         mMyShoutConsumerAsynTaskInterface.endTask(result);
		super.onPostExecute(result);
	}
	
	@Override
	protected Object doInBackground(Object... params) {
		return  mMyShoutConsumerAsynTaskInterface.executeTask(params);
	}
	
	@Override
	protected void onPreExecute() {
         mMyShoutConsumerAsynTaskInterface.startTask();
		super.onPreExecute();
	}

}
